<?php

namespace App\Dto;

class AddContentDTO
{
    private string $url;
    private array $rule;
    private int $leixing;

    /**
     * @param string $url
     * @param array $rule
     * @param int $leixing
     */
    public function __construct(string $url, array $rule, int $leixing)
    {
        $this->url = $url;
        $this->rule = $rule;
        $this->leixing = $leixing;
    }


    /**
     * @return int
     */
    public function getLeixing(): int
    {
        return $this->leixing;
    }

    /**
     * @param int $leixing
     */
    public function setLeixing(int $leixing): void
    {
        $this->leixing = $leixing;
    }


    /**
     * @return string
     */
    public function getUrl(): string
    {
        return $this->url;
    }

    /**
     * @param string $url
     */
    public function setUrl(string $url): void
    {
        $this->url = $url;
    }

    /**
     * @return array
     */
    public function getRule(): array
    {
        return $this->rule;
    }

    /**
     * @param array $rule
     */
    public function setRule(array $rule): void
    {
        $this->rule = $rule;
    }


}
